/*
 ============================================================================
 Name		: YuebaoMagazineAppUi.h
 Author	  : 
 Copyright   :
 Description : Declares UI class for application.
 ============================================================================
 */

#ifndef __YUEBAOMAGAZINEAPPUI_h__
#define __YUEBAOMAGAZINEAPPUI_h__

// INCLUDES
#include <aknappui.h>

// FORWARD DECLARATIONS
class CYuebaoMagazineAppView;
class CMemoryStateMonitor;
// CLASS DECLARATION
/**
 * CYuebaoMagazineAppUi application UI class.
 * Interacts with the user through the UI and request Message processing
 * from the handler class
 */
class CYuebaoMagazineAppUi : public CAknAppUi
{
public:
    // Constructors and destructor

    /**
     * ConstructL.
     * 2nd phase constructor.
     */
    void ConstructL();

    /**
     * CYuebaoMagazineAppUi.
     * C++ default constructor. This needs to be public due to
     * the way the framework constructs the AppUi
     */
    CYuebaoMagazineAppUi();

    /**
     * ~CYuebaoMagazineAppUi.
     * Virtual Destructor.
     */
    virtual ~CYuebaoMagazineAppUi();

private:
    // Functions from base classes

    /**
     * From CEikAppUi, HandleCommandL.
     * Takes care of command handling.
     * @param aCommand Command to be handled.
     */
    void HandleCommandL(TInt aCommand);

    /**
     *  HandleStatusPaneSizeChange.
     *  Called by the framework when the application status pane
     *  size is changed.
     */
    void HandleStatusPaneSizeChange();

    /**
     *  HandleStatusPaneSizeChange.
     *  Called by the framework when the application status pane
     *  size is changed.
     */
    TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

private:
    // Data

    /**
     * The application view
     * Owned by CYuebaoMagazineAppUi
     */
    CYuebaoMagazineAppView* iAppView;
private:
#ifdef __WINSCW__
    CMemoryStateMonitor* _monitor;
#endif//__WINS_CW__
};

#endif // __YUEBAOMAGAZINEAPPUI_h__
// End of File
